-- GENERATED SPELL FOR [Greater Kraul Bat] --


function spell0_4539(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_4539', 6279, 1)
end

function Sorts_4539(pUnit, Event)
local choix_sorts_4539 = math.random(0, 0)
if choix_sorts_4539 == 0 then
pUnit:RegisterEvent('spell0_4539', 1, 1)
end
end

function mob4539_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4539', math.random(1500, 3000), 1)
end

function mob4539_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4539_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4539_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4539, 1, 'mob4539_Action')
RegisterUnitEvent(4539, 2, 'mob4539_Leave')
RegisterUnitEvent(4539, 3, 'mob4539_Kill')
RegisterUnitEvent(4539, 4, 'mob4539_Die')
